﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace WebApplication1.DDD.Models.Entity.ConnectionString_SQLSERVER
{
    public class Cms_Articles:NFinal.Struct
    {
		public System.Int32? ID {get;set;}
		public System.Int32? a_ClassID {get;set;}
		public System.String aTitle {get;set;}
		public System.String aContent {get;set;}
		public System.DateTime? aCreatTime {get;set;}
		public System.DateTime? aUpdateTime {get;set;}
		public System.Int32? a_PubAdmID {get;set;}
		public System.Int32? a_StatusID {get;set;}
		public System.String aPublisher {get;set;}
		public System.String aInfoSource {get;set;}
		public System.String aLogoUrl {get;set;}
		public System.Boolean? aHasImage {get;set;}
		public System.Int32? aClickCount {get;set;}
		public System.Int32? aCommentCount {get;set;}
		public System.Int32? aParticipateCount {get;set;}
		public System.String aKeyword {get;set;}
		public System.String aDescription {get;set;}
		public System.Int32? aOrderNum {get;set;}
		public System.Boolean? aBroadcast {get;set;}
		public System.Boolean? aRecommend {get;set;}
		public System.Boolean? aFine {get;set;}
		public System.String aGoUrl {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"ID\":");
					tw.Write(ID==null?"null" : ID.ToString());
					tw.Write(",");
					tw.Write("\"a_ClassID\":");
					tw.Write(a_ClassID==null?"null" : a_ClassID.ToString());
					tw.Write(",");
					tw.Write("\"aTitle\":");
					tw.Write("\"");
					tw.Write(aTitle==null?"null":aTitle);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aContent\":");
					tw.Write("\"");
					tw.Write(aContent==null?"null":aContent);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aCreatTime\":");
					tw.Write("\"");
					tw.Write(aCreatTime==null?"null":aCreatTime.ToString());
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aUpdateTime\":");
					tw.Write("\"");
					tw.Write(aUpdateTime==null?"null":aUpdateTime.ToString());
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"a_PubAdmID\":");
					tw.Write(a_PubAdmID==null?"null" : a_PubAdmID.ToString());
					tw.Write(",");
					tw.Write("\"a_StatusID\":");
					tw.Write(a_StatusID==null?"null" : a_StatusID.ToString());
					tw.Write(",");
					tw.Write("\"aPublisher\":");
					tw.Write("\"");
					tw.Write(aPublisher==null?"null":aPublisher);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aInfoSource\":");
					tw.Write("\"");
					tw.Write(aInfoSource==null?"null":aInfoSource);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aLogoUrl\":");
					tw.Write("\"");
					tw.Write(aLogoUrl==null?"null":aLogoUrl);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aHasImage\":");
					tw.Write(aHasImage==null?"null":((bool)aHasImage?"true":"false"));
					tw.Write(",");
					tw.Write("\"aClickCount\":");
					tw.Write(aClickCount==null?"null" : aClickCount.ToString());
					tw.Write(",");
					tw.Write("\"aCommentCount\":");
					tw.Write(aCommentCount==null?"null" : aCommentCount.ToString());
					tw.Write(",");
					tw.Write("\"aParticipateCount\":");
					tw.Write(aParticipateCount==null?"null" : aParticipateCount.ToString());
					tw.Write(",");
					tw.Write("\"aKeyword\":");
					tw.Write("\"");
					tw.Write(aKeyword==null?"null":aKeyword);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aDescription\":");
					tw.Write("\"");
					tw.Write(aDescription==null?"null":aDescription);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"aOrderNum\":");
					tw.Write(aOrderNum==null?"null" : aOrderNum.ToString());
					tw.Write(",");
					tw.Write("\"aBroadcast\":");
					tw.Write(aBroadcast==null?"null":((bool)aBroadcast?"true":"false"));
					tw.Write(",");
					tw.Write("\"aRecommend\":");
					tw.Write(aRecommend==null?"null":((bool)aRecommend?"true":"false"));
					tw.Write(",");
					tw.Write("\"aFine\":");
					tw.Write(aFine==null?"null":((bool)aFine?"true":"false"));
					tw.Write(",");
					tw.Write("\"aGoUrl\":");
					tw.Write("\"");
					tw.Write(aGoUrl==null?"null":aGoUrl);
					tw.Write("\"");
			tw.Write("}");
		}
		#endregion
    }
}
